<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>初识vue</title>
</head>
<script type="text/javascript" src="../js/vue.js"></script>
<body>


    <!--  -->
    <div class ="root">
        <h1>hello.{{name}}</h1>
        <h1>
            我的年龄是{{age}}
        </h1>
    </div>
    <div class="root">
        <h1></h1>
    </div>
    <script>
        //创建Vue实例
        const x= new Vue({
            el: ".root",
            data:{
              name: '尚硅谷' ,
              age:18,
              

            }
        })
    </script>
</body>
</html>